"""
这是一个数给定的字母字符串中有多少个a的小程序
"""
info = "itheima is a brand of itcast"
count = 0
for char in info:
    if char == 'a':
        count += 1
print(f"{info}中一共有{count}个a。")